]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
recorder: Use workarea to position the recording icon
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 17 May 2013 18:14:26 +0000 (20:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 18 May 2013 12:29:26 +0000 (14:29 +0200)
It looks a bit unpolished to overlap our own chrome with the recording
icon, which may happen when an existing adds UI at the bottom edge.
Fix this by using the primary monitor's workarea for the position rather
than the entire monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=700409

src/shell-recorder.c

index aa8b477c13ab6129350c67680970577ee0a09712..8d84a7ac1c6398859cfb5a8d6089ebb56372d87d 100644 (file)
@@ -477,7 +477,7 @@ recorder_draw_buffer_meter (ShellRecorder *recorder)
   GdkRectangle primary_monitor;
   float rects[16];
 
-  gdk_screen_get_monitor_geometry (recorder->gdk_screen,
+  gdk_screen_get_monitor_workarea (recorder->gdk_screen,
                                    gdk_screen_get_primary_monitor (recorder->gdk_screen),
                                    &primary_monitor);
 
@@ -602,7 +602,7 @@ recorder_on_stage_paint (ClutterActor  *actor,
     {
       GdkRectangle primary_monitor;
 
-      gdk_screen_get_monitor_geometry (recorder->gdk_screen,
+      gdk_screen_get_monitor_workarea (recorder->gdk_screen,
                                        gdk_screen_get_primary_monitor (recorder->gdk_screen),
                                        &primary_monitor);
       if (!recorder->only_paint)